package org.dut.journal;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 使用注解简化代码，帮我们创建Logger对象 log
@Slf4j
@RestController
@RequestMapping("/journal")
public class JournalController {
//    private static Logger logger = LoggerFactory.getLogger(JournalController.class);
    @RequestMapping("/log")
    public String log(){
        log.trace("-----------------trace-----------------");
        log.debug("---------------debug--------------");
        return "log";
    }

}
